package com.example.myspringboot.design.factory.ordinary;

import com.example.myspringboot.design.factory.dto.Product;
import com.example.myspringboot.design.factory.ordinary.SimpleFactory.SimpleFactory;

/**
 * @Author ZhengShan
 * @Date 2024 06 26 11 08
 **/
public class TestMain {

    public static void main(String[] args) {
        Product productA = SimpleFactory.createProduct("A");
        productA.use();
        Product productB = SimpleFactory.createProduct("B");
        productB.use();
//        Product productC = SimpleFactory.createProduct("C");
//        productC.use();
    }
}
